<template>
  <div>
    <h1>站点管理</h1>
    <MasterTable :dataList="sites" :columns="columns" />
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { fetchSites } from '@/api/master';
import MasterTable from '@/components/MasterTable.vue';

const sites = ref([]);
const columns = [
  { label: 'ID', field: 'id' },
  { label: '项目编码', field: 'projectCode' },
  { label: '站点信息', field: 'siteInfo' }
];
onMounted(async () => {
  sites.value = await fetchSites();
});
</script> 